{extend  name="Index/index" /}

<!-- 内容区域 -->
<div class="tpl-content-wrapper">
    {block name="main"}
    <div class="row-content am-cf">
        <div class="row">
            <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                <div class="widget am-cf">
                    <div class="widget-head am-cf">
                        <div class="widget-title  am-cf">班期列表</div>


                    </div>
                    <div class="widget-body  am-fr">

                        <form method="post" action="{:url('admin/classdate/select')}">
                            <div class="am-u-sm-12 am-u-md-6 am-u-lg-3">

                                <div class="am-form-group tpl-table-list-select">
                                    <select data-am-selected="{btnSize: 'sm'}" name="coursename">

                                        <option value="option1">所有课程</option>
                                        {volist name="e" id="a" }
                                        <option value="{$a}">{$a}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
                                <div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
                                    <input type="text" class="am-form-field " placeholder="输入所在班期" name="classname">
                                    <span class="am-input-group-btn"><button type="submit" class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search"></button></span>
                                </div>
                            </div>
                        </form>
                        <div class="am-u-sm-12">
                            <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black "
                                   id="example-r">
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>课程</th>
                                    <th>班期</th>
                                    <th>开班时间</th>
                                    <th>班级时长(月)</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="data" id="v" }
                                <tr class="gradeX">
                                    <td>{$v['id']}</td>
                                    <td>{$v[1]}</td>
                                    <td>{$v['classname']}
                                    </td>
                                    <td>{$v[0]}</td>
                                    <td>{$v['longtime']}</td>
                                    <td>
                                        <div class="tpl-table-black-operation">
                                            <a href="cledit/{$v.id}">
                                                <i class="am-icon-pencil"></i> 编辑
                                            </a>
                                            <a href="cldelete/{$v.id}" class="tpl-table-black-operation-del">
                                                <i class="am-icon-trash"></i> 删除
                                            </a>
                                        </div>
                                    </td>
                                </tr>
                                {/volist}

                                <!-- more data -->
                                </tbody>
                            </table>
                        </div>
                        <div class="am-fr">
                            <ul class="am-pagination tpl-pagination">
                                <li><a href="?page=1">首页</a></li>
                                <li class=""><a href="?page=1">&laquo;</a></li>
                                <li class="am-active"><a href="?page=1">1</a></li>
                                <li class="am-active"><a href="?page=2">2</a></li>
                                <li class="am-active"><a href="?page=3">3</a></li>
                                <li><a href="disabled">&raquo;</a></li>
                                <li><a href="#">尾页</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
